
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>安卓App下载</title>
    <script src="clipboard.min.js"></script>
    <style>
        body {
            width: 100%;
            height: 100%;
            position: absolute;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .shareGuideView {
            width: 100%;
            height: 100%;
            background-position: right;
            position: absolute;
            top: 44px;
            z-index: 999;
            background-color: rgba(0,0,0,0.8);
        }
    </style>
</head>

<body>
<div style="width:100%;height:44px;line-height: 44px;background-color: red;text-align: center;position: fixed;top:0;color:#fff;font-size: 20px;">安卓App下载</div>
<img src="img/english.png" style="width:80px;height:80px" /> <br>
<span style="width:100%;height:80px;line-height: 30px;display:flex;flex-direction: column;justify-content: center;align-items: center;text-align: center;">

		 </span>

<br>

<button  data-clipboard-text="a.apk" class="btn-download" onclick="downloadApp(this)" style="margin-top:30px;width:200px;height:35px;line-height: 35px;color:#fff;font-size:16px;background-color: rgb(216,154,97);text-align: center;">点击下载</button>
<input type="hidden" id="appUrl" value="http://yeyy.gcshop.cc/app/yuren_english.apk " />

<div class="shareGuideView" id="shareGuideView" style="display: none;" onclick="document.getElementById('shareGuideView').style.display='none'">
    <img style="position: absolute;right:0;top:0;z-index:9999" src="img/bg_share_guide2.png">
    <span style="width:100%;height:100%;color:#fff;font-size:20px;display: flex;justify-content: center;align-items: center;">
				点击右上角<br>
				选择在浏览器打开
			</span>
</div>
</body>
<script type="text/javascript">

    var downAppUrl = 'a.apk';

    var clipboard = new ClipboardJS('.btn-download');

    clipboard.on('success', function(e) {
        console.log(e);
    });



    var downloadApp = function() {
        var ua = navigator.userAgent;
        var isWeixin =  !!/MicroMessenger/i.test(ua);
        if(isWeixin){
            document.getElementById('shareGuideView').style.display = 'block';
            window.location.href='xiazai.html';
        }else{
            window.location.href = downAppUrl;
        }

    }
</script>

</html>